﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Kugar.Core.Network.Web;
using WS.FlowAuth.Web.Data.EF;

namespace WS.FlowAuth.Web.Controllers
{
    public abstract class BaseController : Controller
    {
        private RequestThreadLocal<FlowAuthEntities> _context = new RequestThreadLocal<FlowAuthEntities>(() => new FlowAuthEntities());

        protected FlowAuthEntities Context => _context.Value;
    }
}